package org.tlipoca.smcomment.client;

import org.genntii.smcommon.result.Result;
import org.genntii.smdomain.vo.UserVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("sm-userServer")
public interface UserClient {

    @GetMapping("/user/exists/{userId}")
    Result<Boolean> getUserExists(@PathVariable Long userId);

    @GetMapping("/user/{userId}")
    Result<UserVO> getUserById(@PathVariable Long userId);
}
